home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
mm_bat10.zip
/
MB.DOC
< prev
next >
Wrap
Text File
|
1989-12-10
|
17KB
|
320 lines
Document for MicroMacroBat....................................................
MB.EXE is a program which when run with an argument on the command line, from
either the DOS prompt or within a batch file, performs the operations specified
by that argument. For example, by typing or placing this line in a batch
file or on the command line:
MB BOX/1/1/12/80/1/112
MicroMacroBat will perform the operation specified by the argument
BOX/1/1/12/80/1/112. The argument tells MicroMacroBat to place a BOX with the
upper left corner at row 1, column 1, the lower right corner at row 12,
column 80, use the single line box character and make the color black on
white.
MicroMacroBat can be a very handy extention to your batch file writing tools
without having to learn a new batch-file-writing language or performing
a compilation.
MB.EXE can be tucked away in your utilities directory with a "path" pointing
to it. MicroMacroBat calls may be intermixed with the batch file routines you
normally use without any further consideration other than proper syntax usage.
MicroMacroBat will have many uses:
* In your AUTOEXEC.BAT files.
* In distribution disc BAT files for hard drive installations.
* In BAT files for making file backups.
* In BAT files for demonstration programs and slide shows.
* For Shareware distributors GO files.
* BLOADable screen design. See note 3 under REGISTRATION.
DEMO.BAT is a batch file which demonstrates some of the routines and contains
some important remarks.
NOTE: In order that MB can load and execute as quickly as possible, syntax
. and error checking are non-existent. Make no errors and you will have
. no problems.
The ONLY legal argument separator is the "/". DO NOT use anything else.
Either upper or lower case text is acceptable. Remember, each line is to
be prefixed with MB, followed by a space and the argument, ie:
. MB BOX/1/1/12/80/1/31
The following is a list of supported arguments, their proper syntax and an
explanation of what the operation does.
BOX/BR/BC/ER/EC/CHARACTER/COLOR/C Draws a box where BR is the beginning
. row, BC the beginning column, ER the
. ending row, EC the ending column where
. BR < ER, BC < EC and COLOR < 256.
. CHARACTER is either 1 or 2 indicating
. a single or double line box. COLOR
. is a single value representing the
. foreground and background colors. See
. the single color chart below. The
. values for BR, BC, ER and EC
. should be within the allowable limits
. as dictated by the lines/columns mode
. of your monitor. Appending /C to the
. argument clears the inside of the box
. to the background color specified in
. the COLOR argument.
. Example: BOX/1/5/12/75/1/79 draws a single-line
. box with the upper left corner at row
. 1, column 5, the lower right corner at
. row 12 column 75 in bright white on
. red and not cleared.
CLEARSCR/BR/BC/ER/EC/COLOR Clears an area of the screen where BR,
. BC, ER, EC and COLOR have the meanings
. as described above.
. Example: CLEARSCR/1/5/12/75/31
BLOAD/FILENAME$ BLOADS a file into video memory as
. the BASIC's BLOAD command. The area
. of video memory the file is loaded into
. is automatically determined by the
. monitor in use. This command is for
. "slide shows" of predetermined screen
. files made with Basic's BSAVE or a
. screen capture utility.
. Example: BLOAD/MAINMENU.SCR
FILLSCRN/BR/BC/ER/EC/COLOR/ASCII Fills the screen with the character
. represented by the value ASCII. BR,
. BC, ER, EC and COLOR are as previously
. described.
. Example: FILLSCRN/1/5/12/75/30/45 will fill the
. described area with dashes colored
. yellow on blue.
PAINT/BR/BC/ER/EC/COLOR Paints the screen without disturbing
. the existing text.
. Example: PAINT/1/5/12/75/7
OCPRINT/ROW/COLUMN/TEXT$/COLOR Same as PRINT, below, except that
. printing takes place slowly; one
. character at a time, for effect.
PRINT/ROW/COLUMN/TEXT$/COLOR Rapidly prints TEXT$ in COLOR at the
. ROW/COLUMN. TEXT$ will be displayed
. exactly as entered, including quotes
. if used. Extended ASCII characters
. may be displayed. The routine writes
. to video memory; no line feed issued.
. Example: PRINT/5/1/display these words/31
CURSOROFF Turns the cursor off.
CURSORON Turns the cursor on.
LOCATE/ROW/COLUMN Locates the cursor at ROW/COLUMN.
. Handy if you want to use the ECHO
. command. Printing by DOS will begin
. at the cursor position.
. Example: LOCATE/1/1
WAIT Suspends operation and waits for a
. keypress.
CHIME/WHICHONE Makes a chime-like tone. WHICHONE
. must be in the range of 1 to 10.
. Example: CHIME/7
SLEEP/SECONDS Suspends operation until SECONDS
. seconds elapses.
. Example: SLEEP/4
STUFF/TEXT$ Stuffs text into the keyboard buffer,
. appending an <ENTER> keypress.
. To simulate pressing <ENTER>, simply
. use STUFF without parameters. TEXT$
. CANNOT be more than 15 characters.
. Example: STUFF/Y
USCROLL/BR/BC/ER/EC/TIMES Provides for scrolling of a selected
DSCROLL/BR/BC/ER/EC/TIMES area of the screen, either Up, Down,
LSCROLL/BR/BC/ER/EC/TIMES Left or Right, TIMES times.
RSCROLL/BR/BC/ER/EC/TIMES
. Example: LSCROLL/1/1/12/80/4
FADE/COLOR Provides for a screen disolve to COLOR.
. Example: FADE/64
BIG/TEXT/CHR/R/C/COLOR Prints large block text; 3 rows, 10
.